From: Aaron Schulz Date: Sat, 28 Feb 2009 19:10:37 +0000 (+0000) Subject: log dump tweak: only select user_name from user table X-Git-Tag: 1.31.0-rc.0~42651 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=a5af6444087d4ff1dbd8a7abd00c70483bad7446;p=lhc%2Fweb%2Fwiklou.git log dump tweak: only select user_name from user table --- diff --git a/includes/Export.php b/includes/Export.php index 31b2b9c867..faa11f0076 100644 --- a/includes/Export.php +++ b/includes/Export.php @@ -184,8 +184,10 @@ class WikiExporter { # Hide private logs $where[] = LogEventsList::getExcludeClause( $this->db ); if( $cond ) $where[] = $cond; + # Get logging table name for logging.* clause + $logging = $this->db->tableName('logging'); $result = $this->db->select( array('logging','user'), - '*', + array( "{$logging}.*", 'user_name' ), // grab the user name $where, $fname, array( 'ORDER BY' => 'log_id', 'USE INDEX' => array('logging' => 'PRIMARY') )